package com.ss.android.newmedia.d;

import android.content.Context;
import com.bytedance.article.common.c.TTUtils;
import com.ss.android.common.dialog.AlertDialog;
import com.ss.android.update.IUpdateUtils;
import com.ss.android.update.SSUpdateUtils;

public final class UpdateUtilsImpl implements IUpdateUtils {
    private static UpdateUtilsImpl sInstance = new UpdateUtilsImpl();

    public UpdateUtilsImpl() {

    }

    public static void a() {
        SSUpdateUtils.getInstance().mUpdateUtilsImpl = UpdateUtilsImpl.sInstance;
    }

    public final int getErrorCode(Context context, Throwable throwable) {
        return TTUtils.getErrorCode(context, throwable);
    }

    public final AlertDialog.Builder createDialogBuilder(Context context) {
        return com.ss.android.j.b.createDialogBuilder(context);
    }
}

